package com.whw.springboot.walk.service;

import com.whw.springboot.walk.entity.Apply;
import com.whw.springboot.walk.entity.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApplyService {

    Message<?> addApply(Apply apply);

    Message<?> deleteApplyByPrimaryKey(String applyId);

    Message<?>  deleteApplyByActId(String actId);

    Message<?>  deleteApplyByUserId(String userId);

    Message<?>  deleteApplyByActIdAndUserId(Apply apply);

    Message<?>  updateApplyPrimaryKey(Apply apply);

    Message<?>  updateApplyByPrimaryKeySelective(Apply apply);

    Message<List<Apply>>  selectAllApply();

    Message<List<Apply>>  selectAllApplyByUserId(String userId);

    Message<List<Apply>>  selectAllApplyByActId(String actId);

    Message<Apply> selectApplyByUserIdAndActId(@Param("userId")String userId,@Param("actId")String actId);

    Message<Apply> selectApplyByPrimaryKey(String applyId);
}
